fin = File.new(ARGV[0] ? ARGV[0] : "ratings.txt", "r")
htmlRatings = File.new(ARGV[1] ? ARGV[1] : "ratings.html", "w")
$i = 1;
while(line = fin.gets)	
	if(/^(.+?)\s+([\d.]+)/.match(line))
		htmlRatings << $i.to_s << " "*(3 - $i.to_s.length) << $1 << " "*(20 - $1.length) << $2.to_f.round << "\n" if($2.to_f > 0);
		$i+=1;
	end
end
fin.close
htmlRatings.close
